﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Eventhere.Work;
using System.IO.IsolatedStorage;

namespace Eventhere.Events
{
    public partial class EventDetails : PhoneApplicationPage
    {
        private Event e;

        public EventDetails()
        {
            InitializeComponent();

            if (IsolatedStorageSettings.ApplicationSettings.Contains("Event"))
                this.e = (Event)IsolatedStorageSettings.ApplicationSettings["Event"];

            tbNomEvent.Text = e.NameEvent;
            tbContent.Text = e.ContentEvent;
            tbDate.Text = e.CalendarEvent.DateStartCalendar.ToShortDateString();
            tbHour.Text = e.CalendarEvent.DateStartCalendar.ToShortTimeString();
            tbAdress.Text = e.LocationEvent;

        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {

        }
    }
}